package com.itheima.job;

import lombok.Data;

@Data
public class Manager extends Employee{
    private Clerk clerk;

    public Manager() {
    }

    public Manager(String name, String workId, String dept, Clerk clerk) {
        super(name, workId, dept);
        this.clerk = clerk;
    }
    @Override
    void showMsg() {
        System.out.println("经理：工号为 "+ getWorkId()+"，名字为 "+
                getName()+"，部门为 "+getDept()+"，他的职员名字是 "+clerk.getName());
    }
}
